/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package otcapp.controlador;

import javax.swing.JDesktopPane;
import javax.swing.JLabel;
import otcapp.controlador.jpanels.MenuPrincipalJPanel;
import otcapp.utiles.paneles.JDesktopPaneConFondo;

/**
 *
 * @author diego
 */
public class ControladorPrincipalPantalla extends javax.swing.JFrame {

    /**
     * Creates new form ControladorPrincipalPantalla
     */
    public ControladorPrincipalPantalla() {
        initComponents();
        menuPrincipal.requestFocus();
        lblBotonElegido.setText("");
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        contenedorPrincipal = new JDesktopPaneConFondo(this.getClass().getResource("../utiles/imagenes/backgrounds/back01.jpg").getPath());
        menuPrincipal = new otcapp.controlador.jpanels.MenuPrincipalJPanel();
        lblBotonElegido = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        contenedorPrincipal.setBackground(new java.awt.Color(51, 51, 255));
        menuPrincipal.setBounds(20, 80, 160, 440);
        contenedorPrincipal.add(menuPrincipal, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblBotonElegido.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
        lblBotonElegido.setForeground(new java.awt.Color(255, 255, 255));
        lblBotonElegido.setText("botón");
        lblBotonElegido.setBounds(30, 50, 830, 24);
        contenedorPrincipal.add(lblBotonElegido, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(contenedorPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, 946, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(contenedorPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, 548, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JDesktopPane contenedorPrincipal;
    private javax.swing.JLabel lblBotonElegido;
    private otcapp.controlador.jpanels.MenuPrincipalJPanel menuPrincipal;
    // End of variables declaration//GEN-END:variables

    public JDesktopPane getContenedorPrincipal() {
        return contenedorPrincipal;
    }

    public JLabel getLblBotonElegido() {
        return lblBotonElegido;
    }

    public MenuPrincipalJPanel getMenuPrincipal() {
        return menuPrincipal;
    }

    public void ocultarBtnIngresarPieza() {
        menuPrincipal.getLblIngresarPieza().setVisible(false);
        menuPrincipal.getEtiquetaBtnIngresarPieza().setVisible(false);
    }
    
    public void ocultarBtnBuscarPieza(){
        menuPrincipal.getLblConsultarPieza().setVisible(false);
        menuPrincipal.getEtiquetaBtnBuscarPieza().setVisible(false);
    }
    
    public void ocultarBtnAsignarProfesional(){
        menuPrincipal.getLblAsignarProfesional().setVisible(false);
        menuPrincipal.getEtiquetaBtnAsignarProfesional().setVisible(false);
    }
    
    public void ocultarBtnSupervisiones(){
        menuPrincipal.getLblSupervisiones().setVisible(false);
        menuPrincipal.getEtiquetaBtnSupervisiones().setVisible(false);
    }
    
    public void ocultarBtnUsuarios(){
        menuPrincipal.getLblUsuarios().setVisible(false);
        menuPrincipal.getEtiquetaBtnUsuarios().setVisible(false);
    }
}
